package com.dawn.jpa.sqlserver.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.dawn.jpa.sqlserver.entity.Contact;

public interface ContactsRepository extends JpaRepository<Contact, Long>{
    
    Contact findByName(String name);
    
    List<Contact> findByNameLike(String name);

    void deleteById(long id);
}
